﻿@model eShop.Web.Mobile.Models.LoginModel
@{
    Layout = null;
}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户登录-@{@WorkContext.ShopConfig.SiteTitle}触屏版</title>
    @Html.Raw(WorkContext.ShopConfig.SEOKeyword)
    @Html.Raw(WorkContext.ShopConfig.SEODescription)
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="@{@WorkContext.CSSCDN}/mobile/themes/default/css/base.css" rel="stylesheet" type="text/css">
    <link href="@{@WorkContext.CSSCDN}/mobile/themes/default/css/account.css" rel="stylesheet" type="text/css">
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/jquery.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/common.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/account.js" type="text/javascript"></script>
    <script type="text/javascript">
            returnUrl = "@Model.ReturnUrl";
            shadowName = "@Model.ShadowName";
    </script>
</head>

<body>
@Html.Partial("_header")
<script type="text/javascript">
    $("#headerTitle").html("用户登录");
</script>


<div class="loginTable">
  <form name="loginForm" action="">
    <div class="itmeC"><input type="text" class="text" name="@Model.ShadowName" placeholder="用户名/邮箱/手机" /></div>
    <div class="itmeC"><input type="password" class="text" name="password" placeholder="输入密码" /></div>
    @if (Model.IsVerifyCode)
    {
    <div class="itme"><div class="itmeC"><input type="text" class="text" name="verifyCode" style="width:100px; float:left;" placeholder="请输入验证码" /><img id="verifyImage" src="/mob/tool/verifyimage" onclick="this.src='/mob/tool/verifyimage?time=' + new Date()" style="width:100px; margin:0 10px; float:left; height:40px;" /><a href="javascript:void(0)" onclick="document.getElementById('verifyImage').src='/mob/tool/verifyimage?time=' + new Date()" class="left" style="line-height:40px;">换一张</a></div></div>
    }
    @if (Model.IsRemember)
    {
    <div class="itmeC"><input name="isRemember" type="checkbox" class="checkbox">一个月内免登录</div>
    }
    <div class="itmeC"><a href="javascript:login()" class="redBt" style="display:block; padding:0; height:38px; width:99%; text-align:center; line-height:38px;">登录</a></div>
    <div class="table" style="padding-top:10px;">
        <div class="cell" style=" width:50%;"><a href="@Url.Action("register")">免费注册</a></div>
        <div class="cell" style="width:50%; text-align:right;"><a href="@Url.Action("findpwd")">找回密码</a></div>
    </div>
  </form>
<div class="otherLogin table">
<p>其他登录方式</p>
<div class="table">
    @foreach (PluginInfo info in Model.OAuthPluginList)
    {
        IOAuthPlugin instance = (IOAuthPlugin)info.Instance;
        <a class="cell" href="@Url.Action(instance.LoginAction, instance.LoginController, new { area = "" })"><span>@info.FriendlyName</span></a>
    } 
</div>
</div>
</div>
</body>
</html>
